package com.punch.common.vo.user.student;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * 学生信息表
 *
 * @author tanchangguo
 * @email 17607195327@163.com
 * @date 2020-07-21 19:10:02
 */
@Data
@ApiModel(value = "学生信息表返回类")
public class StudentVO implements Serializable {


    @ApiModelProperty(name = "studentId", notes = "学生id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long studentId;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "生日")
    private LocalDate birthday;

    /**
     * 性别 0：女  1：男
     */
    private Integer sex;

    @ApiModelProperty(value = "家长电话")
    private String guardianMobile;

    /**
     * 年级
     */
    @ApiModelProperty(value = "年级")
    private Integer gradeYear;
    /**
     * 班级
     */
    @ApiModelProperty(value = "班级")
    private String gradeClass;

    @ApiModelProperty(value = "0：禁用  1启用")
    @JsonIgnore
    private Integer enabled;


    @ApiModelProperty(value = "学校Id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long schoolId;

    @ApiModelProperty(value = "学校名称")
    private String schoolName;


}
